package cn.fws.meap.user.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.fws.framework.web.entity.BaseEntity;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 账户充值消费记录表 user_account_record
 * 
 * @author chenkh
 * @date 2019-03-07
 */
public class AccountRecord extends BaseEntity {

	private static final long serialVersionUID = 1L;
	
	/** 编号 */
	private String id;
	/** 记录类型 */
	private String type;
	/** 消费类型 */
	private String consumption;
	/** 用户id */
	private String openid;
	/** 消费/充值金额 */
	private BigDecimal amount;
	/** 当前账户余额 */
	private BigDecimal balance;
	/** 消订单号 */
	private String orderNumber;
	/** 消费/充值时间 */
	private Date paymentTime;

	public String getOrder() {
		return orderNumber;
	}

	public void setOrder(String order) {
		this.orderNumber = order;
	}

	public String getConsumption() {
		return consumption;
	}

	public void setConsumption(String consumption) {
		this.consumption = consumption;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}
	public void setType(String type) {
		this.type = type;
	}

	public String getType() {
		return type;
	}
	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getOpenid() {
		return openid;
	}
	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public BigDecimal getAmount() {
		return amount;
	}
	public void setBalance(BigDecimal balance) {
		this.balance = balance;
	}

	public BigDecimal getBalance() {
		return balance;
	}
	public void setPaymentTime(Date paymentTime) {
		this.paymentTime = paymentTime;
	}

	public Date getPaymentTime() {
		return paymentTime;
	}

	@Override
	public String toString() {
		return "AccountRecord{" +
				"id='" + id + '\'' +
				", type='" + type + '\'' +
				", consumption='" + consumption + '\'' +
				", openid='" + openid + '\'' +
				", amount=" + amount +
				", balance=" + balance +
				", orderNumber='" + orderNumber + '\'' +
				", paymentTime=" + paymentTime +
				'}';
	}
}
